package com.yyi.springcloud.service;
//
//                       _oo0oo_
//                      o8888888o
//                      88" . "88
//                      (| -_- |)
//                      0\  =  /0
//                    ___/`---'\___
//                  .' \\|     |// '.
//                 / \\|||  :  |||// \
//                / _||||| -:- |||||- \
//               |   | \\\  -  /// |   |
//               | \_|  ''\---/''  |_/ |
//               \  .-\__  '-'  ___/-. /
//             ___'. .'  /--.--\  `. .'___
//          ."" '<  `.___\_<|>_/___.' >' "".
//         | | :  `- \`.;`\ _ /`;.`/ - ` : | |
//         \  \ `_.   \_ __\ /__ _/   .-` /  /
//     =====`-.____`.___ \_____/___.-`___.-'=====
//                       `=---='
//
//
//     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
//               佛祖保佑         永无BUG
//

/**
 * @author: yyi
 * @date: 2019/7/15 10:12
 * @parameters:
 * @desc:
 **/

import com.yyi.springcloud.common.PageInfoResult;
import com.yyi.springcloud.entities.SensorInfoModel;
import com.yyi.springcloud.entities.TestDataVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "MICROSERVICECLOUD-DEPT")

public interface DataListService {
    @RequestMapping(value = "/mysqlapi/TestData/getAllTestDataVo",method = RequestMethod.GET)
    PageInfoResult<TestDataVo> getAllTestDataVo(@RequestParam("labcode") String labcode, @RequestParam("testunitno") String testunitno, @RequestParam("startdate") String startdate, @RequestParam("enddate") String enddate, @RequestParam("pageNum") String pageNum,
                                                @RequestParam(value = "pageSize",required = false) String pageSize);
    @RequestMapping(value = "/mysqlapi/TestData/getAllSelectSensorName",method = RequestMethod.GET)
    List<SensorInfoModel> getAllSelectSensorName(@RequestParam("primaryKey") String primaryKey,@RequestParam(value = "testunitno",required = false) String testunitno);
}
